package cn.wsxiot.patterns.SingletonPattern.come;
/**
 * @author wsx
 *
 */
public class Singleton {
	private static class SingletonHolder{
		private static final Singleton instance = new Singleton();
	}
	
	private Singleton(){
	}
	
	public static final Singleton getInstance(){
		return SingletonHolder.instance;
	}
	
	public void show(){
		System.out.println("hello");
	}
}
